<template>
  <div class="container">
    <Capetory title="游戏">
      <!--scope名字可以自定义  -->
      <template scope="games">
        <ul>
          <li v-for="(item, index) in games.games" :key="index">{{ item }}</li>
        </ul>
      </template>

      <div class="footer">
        <a href="#">单机游戏</a>
        <a href="#">网络游戏</a>
      </div>
    </Capetory>
    <Capetory title="游戏">
      <template scope="games">
        <ul>
          <h3 v-for="(item, index) in games.games" :key="index">{{ item }}</h3>
        </ul>
      </template>
      <div class="footer">
        <a href="#">单机游戏</a>
        <a href="#">网络游戏</a>
      </div>
    </Capetory>
    <Capetory title="游戏">
      <template scope="games">
        <ol>
          <li v-for="(item, index) in games.games" :key="index">
            {{
              item
            }}
          </li>
        </ol>
      </template>
      <div class="footer">
        <a href="#">单机游戏</a>
        <a href="#">网络游戏</a>
      </div>
    </Capetory>
  </div>
</template>

<script>
import axios from "axios";
import Capetory from "./components/Category.vue";
export default {
  name: "App",
  data() {
    return {};
  },
  methods: {},
  components: {
    Capetory,
  },
};
</script>

<style lang='css'>
.container,
.footer {
  display: flex;
  justify-content: space-around;
}
</style>